package com.miao.enums;

/*ResponseEnum*/
public enum REnum {
    SUCCESS("200","操作成功"),
    UNKNOW_ERROR("500","服务器未知异常"),
    USER_NOT_EXIST("501","用户不存在"),
    USER_PASSWORD_ERROR("502","用户密码错误"),
    USER_PASSWORD_NOT_NULL("5022","用户密码不能为空"),
    USER_NOT_LOGIN("503","用户未登录"),
    PHONE_IS_NULL( "504","手机号不能为空"),
    USER_REGISTED( "505","用户已注册"),
    PASSWORD_DECODE_ERROR( "506","密码解密失败");

    private String code;
    private String msg;

    REnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
